package org.ssmd4.service;

import org.ssmd4.pojo.Ebook;

import java.util.List;

public interface EbookService {
    int save(Ebook ebook);
    int update(Ebook ebook);
    Ebook getOneEbook(int id);

    int getRecordCount(Ebook ebook);
    List<Ebook> getEbookListByPage(Ebook ebook);
    List<Ebook> getTopEbookList();

    int delete(int id);
    int deleteAll(String[] ids);
}
